package com.chinaums.fsp.sdk.request;

import com.chinaums.fsp.base.pgt.TransType;
import com.chinaums.fsp.sdk.base.RequestData;
import com.chinaums.fsp.sdk.base.ResponseDataWrapper;
import com.chinaums.fsp.sdk.pgt.params.PledgeSolutionCreateOrderRequest;
import com.chinaums.fsp.sdk.pgt.params.PledgeSolutionCreateOrderResponse; 
/**
 * 创建解押交易
 * @author hhh
 */
public class PledgeSolutionCreateOrderTest extends BaseRequest{

	public void testPledgeSolutionCreateOrderRequest() throws Exception {
		
		PgtRequestFactory rf = FACTORY.factory();
		
		RequestData.Builder builder = this.createRequestDataBuilder();
		builder.setTransType(TransType.TRANSPLEDGE_CREATE_ORDER.getTransCode());
		
		PledgeSolutionCreateOrderRequest data = PledgeSolutionCreateOrderRequest.newBuilder()
															.setPledgorWalletNo("801000000000087")
															.setPawneeWalletNo("801000000000088")
															.setInvoiceNo("90000000000507")
															.setOrderId("20171022225711033941")
															.build()
															;
		rf.transType(TransType.TRANSPLEDGE_CREATE_SOLUTION_ORDER.getTransCode())
		.responseClass(PledgeSolutionCreateOrderResponse.class)
		.data(data)
		;
		ResponseDataWrapper rdw = rf.post();
	
		this.print(rdw);
	}
	
}